package com.cloud.common.security.feign;

import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * Author:  xuanning
 * Date:    2023/2/15 15:44
 */
@Configuration
public class FeignAutoConfiguration {

    /**
     * feign请求拦截器
     * @return
     */
    @Bean
    public RequestInterceptor requestInterceptor() {
        return new FeignRequestInterceptor();
    }
}
